package com.ry.novel.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ry.novel.model.dto.BookIndexInfo;
import com.ry.novel.model.dto.condition.BookIndexQuery;
import com.ry.novel.model.entity.BookIndex;

import java.util.List;

/**
 * @author ry
 * @since 2022-03-27 17:11
 **/
public interface BookIndexService {

    Page<BookIndexInfo> queryBookIndexInfo(BookIndexQuery query);

    /**
     * 更新章节信息
     * @param bookIndexInfo
     */
    void updateIndex(BookIndexInfo bookIndexInfo);

    void addIndex(BookIndexInfo bookIndexInfo);

    void deleteIndex(Long id);


    BookIndexInfo queryBookIndexById(Long id);

    List<BookIndexInfo> queryBookIndexByBookId(Long bookId);
}